package main.java.com.sommer.learn;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {  
        ApplicationContext apc = new ClassPathXmlApplicationContext("springXML/HelloWorld.xml");  
        HelloWorld hello = apc.getBean("helloWorld",HelloWorld.class);  
        System.out.println(hello.sayHi());  
    }  
}